Motivations and Learning Outcomes
History and Language Goals
How to Take this Course
A Message for Roblox Users
Using Lua with REPL
Installing Lua on Linux
Installing Lua on macOS
Installing Lua on Windows
Our First Lua Script
Variables
Using REPL with Lua 5.1
Proposed Activity: Variables
Variables Activity Solution
Incrementing and Decrementing Values
Conditional Statements
The Elseif Statement
Proposed Activity: Conditionals
Conditionals Activity Solution
Logical Operators
String Manipulation
Multi-line Strings
Reading the Contents of a File
Multiple Assignment
Popular Standard Library Modules
Lua String Patterns
The For Loop
The While Loop
Loop Options
Variable Scope
Local Scope and Lua Chunks
Syntax and Semantic Errors
Solving Logical Mistakes
Inputting Values from the Keyboard
Handling Input Options
Input Options
Finding Distance Between Points
Finding Angle Between Points
Proposed Exercises on Loops
Proposed Exercise Walkthrough
An Introduction to Lua Functions
Lua Tables
Table Example
Proposed Activity: Looping Table Entries
Looping Table Entries Solution
Example of Tables as Configuration Files
Tables as Matrices
Formative Project: Tic-Tac-Toe
Moving Forward
Metatables
Object-Oriented Programming in Lua
Creating Classes and Objects
Higher-Order Functions and Closures
Examples of Higher-Order Functions
Variadic Functions
Integrating Lua with C
C Project Folder Structure
Executing Lua File from C
Get Lua Global Values in C
Accessing the Stack
Push Pop and Peak
Calling Lua Functions from C
Checking for Script Errors
Calling Native C Functions from Lua
Userdata
Sending and Receiving Userdata
Reading Lua Tables in C
Installing SDL
Creating SDL Window
The Game Loop
SDL Rendering
Fixing the Game Loop Timestep
Update as a Function of Delta Time
Controlling the Player Movement with Lua
Final Considerations on Lua and C
Next Steps
Lua and Roblox
Accessing Roblox Studio
Roblox Parts and Properties
Roblox Vectors and Colors
Roblox New Object Instance
Proposed Activity: Sun & Moon Script
Sun & Moon Script Activity Solution
Roblox Loops and the Wait Function
Roblox Loops and Conditionals
Roblox Events
Roblox Humanoid Properties
Roblox Players and Characters
Roblox Models and Assets
Roblox Terrain Editor
Roblox Lighting and ClockTime
Roblox Leaderboard
Roblox Debugging
Roblox CFrame
Roblox Following Parts
Getting Help with Roblox
Building Lua 5.4 from Source on Linux